class Review < ActiveRecord::Base
  belongs_to :user
  belongs_to :movie
  
  validates_inclusion_of :score, :in => 1..5
  validates_uniqueness_of :movie_id, :scope => [:user_id]
  validates_presence_of :user, :movie_id
end
